﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YJKPretreatmentModeling
{
	public partial class ProgressBarForm : System.Windows.Forms.Form
	{
		public ProgressBarForm(int iNum)
		{
			this.InitializeComponent();
			this.progressBar1.Maximum = iNum;
			this.progressBar1.Minimum = 0;
		}

		public void setProgressBar()
		{
			ProgressBar progressBar = this.progressBar1;
			int value = progressBar.Value;
			progressBar.Value = value + 1;
			if (value < this.progressBar1.Maximum)
			{
				Application.DoEvents();
				this.progressBar1.Refresh();
				return;
			}
			base.Dispose();
			base.Close();
		}

		private void ProgressBarForm_Load(object sender, EventArgs e)
		{
			//base.Icon = Resource.YArchitechIcon;
		}
	}
}
